{if is_array($arrGift)}
<div class="panel panel-default">
<div class="panel-heading">最新义卖</div>

<div class="panel-body">
    <div class=" piclist">
<ul>
{loop $arrGift $key $item}

    <li>
        <a title="{$item[title]}" href="{tsUrl('gift','show',array('id'=>$item[giftid]))}{$mylink}">
           <img src="{if $item[photo]}{php echo tsXimg($item[photo],'gift','100','100',$item[path],'1')}{else}{SITE_URL}app/gift/skins/default/gift.jpg{/if}">
        </a>
        <div class="username">
            {if $item['appkey'] != 'gift' && $item['appkey']!=''}
            <a target="_blank" style="color:#999999;font-size: 12px;margin-right: 5px;" class="titles-type" href="{SITE_URL}{php echo tsUrl($item['appkey'])}">[{$item['appname']}]</a>
            <a title="{$item[title]}" href="{SITE_URL}{php echo tsUrl($item['appkey'],$item['appaction'],array('id'=>$item['appid']))}{$mylink}">{$item[title]}</a>
            {else}
            <a  style="color:#999999;font-size: 12px;margin-right: 5px;" title="{$item[title]}" href="{tsUrl('gift','show',array('id'=>$item[giftid]))}{$mylink}">{$item[title]}</a>
            {/if}

        </div>
    </li>

<!--
<li>

<div class="userimg"><a href="{tsUrl('user','duty',array('id'=>$item[user][userid]))}"><img class="img-rounded" src="{$item[user][face]}" width="32" height="32" alt="{$item['user']['username']}" title="{$item['user']['username']}" /></a></div>

<div class="gift_title">
<div class="title">

{if $item['appkey'] != 'gift' && $item['appkey']!=''}
<a target="_blank" style="color:#999999;font-size: 12px;margin-right: 5px;" class="titles-type" href="{SITE_URL}{php echo tsUrl($item['appkey'])}">[{$item['appname']}]</a>
<a title="{$item[title]}" href="{SITE_URL}{php echo tsUrl($item['appkey'],$item['appaction'],array('id'=>$item['appid']))}{$mylink}">{$item[title]}</a>
{else}
<a title="{$item[title]}" href="{tsUrl('gift','show',array('id'=>$item[giftid]))}{$mylink}">{$item[title]}</a>
{/if}


</div>
    <div class="piclist">
        <ul>

            <li style="border-bottom: none"><img src="{if $item[photo]}{php echo tsXimg($item[photo],'gift','100','100',$item[path],'1')}{else}{SITE_URL}app/gift/skins/default/gift.jpg{/if}"></li>


        </ul>
    </div>
<div class="gift_info">
<span style="float:left;">
<a href="{tsUrl('gift','type',array('id'=>$item['typeid']))}">{$item[type][typename]}</a>
</span>

<span style="float:right;">
{php echo getTime($item[addtime],time())}

<a href="{tsUrl('user','topic',array('id'=>$item[userid]))}">{$item[user][username]}</a>

<a class="rank" style="color:#FFFFFF;" href="{tsUrl('gift','show',array('id'=>$item[giftid]))}">{$item[count_userdo]}/{$item[quota]}</a>
</span>
</div>

</div>

<div class="clear"></div>

</li>
-->
{/loop}
</ul>

    </div> <div style="float:right;border-bottom: 0px;"><a href="{tsUrl('gift')}"><img src="{SITE_URL}public/images/right.png" style="height:15px"></img></a></div>
</div>

</div>
{/if}